package lagou.user.server.lagouuser.dao;

import lagou.user.server.lagouuser.entity.UserBase;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserBaseDao {

    @Insert("insert into lagou_user(user_account,user_pwd)values (#{userAccount},#{userPwd})")
    int insertUserBase(UserBase userBase);


    @Select("select * from lagou_user where user_account=#{userAccount} and user_pwd=#{userPwd} limit 1 ")
    UserBase findBase(UserBase userBase);

}
